import { IFormDetailContainerController } from '@ibiz-template/runtime';
import { IDEFormTabPanel } from '@ibiz/model-core';
import { FormDetailController } from '../form-detail';
import { FormTabPanelState } from './form-tab-panel.state';

/**
 * 表单分页部件控制器
 *
 * @author lxm
 * @date 2022-09-04 15:09:52
 * @export
 * @class FormTabPanelController
 * @extends {FormDetailController}
 */
export class FormTabPanelController
  extends FormDetailController<IDEFormTabPanel>
  implements IFormDetailContainerController
{
  declare state: FormTabPanelState;

  protected createState(): FormTabPanelState {
    return new FormTabPanelState(this.parent?.state);
  }
}
